package com.itgacl.magic4j.modules.comm.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * @Classname CommLicenseVo
 * @Description CommLicense的展示对象
 * @Author Created by xudp (alias:孤傲苍狼) 290603672@qq.com
 * @Date 2021-12-26
 * @Version 1.0
 */
@ApiModel(value="CommLicense对象Vo")
@Data
public class CommLicenseVo  implements Serializable{

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "授权IP地址(唯一)")
    private String licenseIp;

    @ApiModelProperty(value = "授权码(唯一，用授权的Ip地址生成)")
    private String licenseCode;

    @ApiModelProperty(value = "license模式，0：单机模式，1：时限模式，2：联网模式")
    private Integer mode;

    @ApiModelProperty(value = "授权有效期")
    private LocalDateTime expiryTime;

    @ApiModelProperty(value = "license证书内容加密使用的rsa公钥")
    private String licensePublicKey;

    @ApiModelProperty(value = "license证书内容加密使用的rsa私钥")
    private String licensePrivateKey;

    @ApiModelProperty(value = "自定义私钥使用的种子(长度为8~16)")
    private String seed;

    @ApiModelProperty(value = "license证书内容")
    private String licenseContent;

    @ApiModelProperty(value = "license文件下载链接")
    private String licenseFileUrl;

    @ApiModelProperty(value = "状态  0：正常   1：禁用，2：已过期")
    private Integer status;

    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "客户名称")
    private String consumerName;

    @ApiModelProperty(value = "客户手机号")
    private String consumerCellphone;

    @ApiModelProperty(value = "授权到期通知邮箱")
    private String notifyEmail;

    @ApiModelProperty(value = "备注")
    private String remark;
}
